home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
cactus
/
33
/
progs
/
utilities
/
apfelmaennchen.gfa
(
.txt
)
< prev
next >
Wrap
GFA-BASIC Atari
|
1989-06-25
|
2KB
|
88 lines
REM AUS SKYHIGH-MAILBOX KREFELD am 22.12.1988
REM From: agnus@aragon.UUCP (Matthias Zepf)
REM Newsgroups: sub.sys.ibm,sub.sys.amiga,sub.sys.st,stgt.amiga,stgt.atari
REM Subject: Apfelmaennchen / GFA Basic
REM Message-ID: <780@aragon.UUCP>
REM Date: 13 Dec 88 03:47:06 GMT
REM Distribution: sub
REM Organization: aragon, Sindelfingen, West Germany
REM Lines: 111
REM
REM *******************************************************
REM ** Mandelbrot - Apfelmaennchen - Berechnungsprogramm **
REM ** ---------- -------------- ------------------- **
REM ** **
REM ** (C) 1989 by Matthias Zepf, AMIGA GFA-Basic 3.0 **
REM ** Leonberg, den 12.12.88 **
REM ** Version 1.0 **
REM ** Das Programm darf zu nichtkommerziellen Verwen- **
REM ** dung verbreitet werden. **
REM *******************************************************
REM
MAT XCPY 1,0,0,320,256,5,0
VSETCOLOR 0,0,1,320,255,512,&H11408,1
TITLEW #0,"Apfelmaennchen (C) by Matthias Zepf"
ON MENU MESSAGE GOSUB ende
SETCOLOR 0,0,0,0
FOR i#=0 TO 15
SETCOLOR i#+1,15,i#,0
NEXT i#
FOR i#=0 TO 14
SETCOLOR i#+17,15-i#,15-i#,i#
NEXT i#
WHILE xm#>=xa#
INPUT "xmin -> ",xm#
INPUT "xmax -> ",xa#
WEND
WHILE ym#>=ya#
INPUT "ymin -> ",ym#
INPUT "ymax -> ",ya#
WEND
INPUT "Tiefe? ",ti#
DO
INPUT "Breite? ",br#
EXIT IF (br#>10) AND (br#<321)
LOOP
DO
INPUT "Hoehe? ",ho#
EXIT IF (ho#>10) AND (ho#<257)
LOOP
xst#=160-br#/2
yst#=128-ho#/2
xp#=xst#
yp#=yst#
CLS
FOR y#=ym# TO ya# STEP (ya#-ym#)/ho#
FOR x#=xm# TO xa# STEP (xa#-xm#)/br#
xw#=0
yw#=0
COLOR 1
PLOT xp#,yp#
FOR t#=1 TO ti#
nxw#=xw#*xw#-yw#*yw#+x#
nyw#=2*xw#*yw#+y#
xw#=nxw#
yw#=nyw#
ON MENU
EXIT IF xw#*xw#+yw#*yw#>4
NEXT t#
IF xw#*xw#+yw#*yw#>4 THEN
GOTO a500
ENDIF
COLOR 0
PLOT xp#,yp#
GOTO a600
a500:
COLOR (t# MOD 31)+1
PLOT xp#,yp#
a600:
xp#=xp#+1
NEXT x#
yp#=yp#+1
xp#=xst#
NEXT y#
END
PROCEDURE ende
END
RETURN